package transactionimplementation

import (
	"salary/abstracttransactions"
	"salary/model"
	"salary/modelimplementation"
)

/*
 * 更改雇员类别：小时工
 */

type ChangeHourlyTransaction struct {
	abstracttransactions.ChangeClassificationTransaction
	hourlyRate 		float64
}

func (cht *ChangeHourlyTransaction) GetClassification() model.PaymentClassification {
	return modelimplementation.NewHourlyClassification(cht.hourlyRate)
}

func (cht *ChangeHourlyTransaction) GetSchedule() model.PaymentSchedule {
	return &modelimplementation.BiweeklySchedule{}
}
